<div class="block">
	<div class="hd">
		<h2><?php if($mycompany):?><?=$mycompany->company_name;?> &ndash;<?php endif;?> Users &ndash; <?=$user->firstname;?> <?=$user->lastname;?></h2>
	</div>
	<div class="bd">
		
	<ul id="contextNav" class="clearfix">
		<li><a href="<?=site_url('yourcompany');?>">Company Options</a></li>
		<li><a href="<?=site_url('users');?>">Users</a></li>
	</ul>

	<img src="<?=$chart;?>" />
	
	<?php if($updates):?>

	<table class="projects">
		<thead>
		<tr>
			<th class="project">Project</th>
			<th class="client">Client</th>
			<th class="numberfield">Hours Worked</th>
			<th class="due">Date</th>
		</tr>
		</thead>
		<tbody>
<?php $totalhours = 0;?>
<?php foreach($updates as $update):?>
		<tr>
			<td><?=$update->job_title;?></td>
			<td><?=$update->company_name;?></td>
			<td class="numberfield"><?=$update->hoursworked;?></td>
			<td><?=date('d/m/Y', strtotime($update->dateapplicable));?></td>
		</tr>
		<?php $totalhours += $update->hoursworked;?>
<?php endforeach;?>
	
		</tbody>
		<tfoot>
			<tr>
				<td colspan="2"></td><td class="numberfield"><?=$totalhours;?></td><td></td>
			</tr>
		</tfoot>
	</table>

	<?php endif;?>

</div>

	</div>
</div>

</div>
</div>
</div>

<div id="sidebar" class="yui-b">
		<div class="block">
			<div class="hd">
				<h2></h2>
			</div>
			<div class="bd">
	
			</div>
		</div>
</div>